<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<%@ include file="../../common/common.jsp" %>
<html>
<head>
    <title>Title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%@ include file="../../common/common-resource.jsp"%>
</head>
<body>
    <div style="padding:0px; margin:0px;">
        <ul class="breadcrumb" style="  margin:0px; " >
            <li><a href="#">系统管理</a></li>
            <li>员工管理</li>
            <li>查看员工信息</li>
        </ul>
    </div>

    <form action="" class="form-horizontal">
        <div class="row">
            <div class="col-sm-5 col-sm-offset-4">
                <a href="/system/employee/toEdit?id=${employee.id}" class="btn btn-success" >修改</a>
                <input  type="reset" class="btn  btn-danger" value="删除" onClick="javascript:window.location='/system/employee/delete?id=${employee.id}'"/>
                <input  type="reset" class="btn btn-warning" value="返回上一级" onclick="javascript:history.go(-1)"/>
            </div>
        </div>
        <h5 class="page-header alert-info" style="padding:10px; margin:0px; margin-bottom:5px;">基本信息</h5>
        <div class="row">
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">编号</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.id}</p>
                    </div>
                </div>

            </div>
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">姓名</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.name}</p>
                    </div>
                </div>
            </div>

        </div>
        <!-- 开始2 -->
        <div class="row">
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">年龄</label>
                    <div class="col-sm-5">
                        <p class="form-control-static">${employee.age}</p>
                    </div>
                </div>

            </div>
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">性别</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">
                            <c:if test="${employee.sex == 1}">男</c:if>
                            <c:if test="${employee.sex == 2}">女</c:if>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <!-- 结束2 -->
        <!-- 开始3 -->
        <div class="row">
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">籍贯</label>
                    <div class="col-sm-6">
                        <p class="form-control-static">${employee.origo}</p>
                    </div>
                </div>

            </div>
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">身份证</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.idCard}</p>
                    </div>
                </div>
            </div>
        </div>
        <!-- 结束3 -->
        <!-- 开始4 -->
        <div class="row">
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">出生日期</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">
                            <fmt:formatDate value="${employee.birthdate}"/>
                        </p>
                    </div>
                </div>

            </div>
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">办公电话</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.companyPhone}</p>
                    </div>
                </div>
            </div>
        </div>
        <!-- 结束4 -->
        <!-- 开始4 -->
        <div class="row">
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">电子邮件</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.email}</p>
                    </div>
                </div>

            </div>
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">移动电话</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.mobilePhone}</p>
                    </div>
                </div>
            </div>
        </div>
        <!-- 结束4 -->
        <!-- 开始5 -->
        <div class="row">
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">家庭住址</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.address}</p>
                    </div>
                </div>

            </div>
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">QQ</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.qq}</p>
                    </div>
                </div>
            </div>
        </div>
        <!-- 结束5 -->
        <!-- 开始6 -->
        <div class="row">
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">入职时间</label>
                    <div class="col-sm-9">
                        <p class="form-control-static"><fmt:formatDate value="${employee.entryDate}"/></p>
                    </div>
                </div>

            </div>
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">教育水平</label>
                    <div class="col-sm-6">
                        <p class="form-control-static">
                            <c:if test="${employee.educationLevel == 0}">保密</c:if>
                            <c:if test="${employee.educationLevel == 1}">本科</c:if>
                            <c:if test="${employee.educationLevel == 2}">硕士</c:if>
                            <c:if test="${employee.educationLevel == 3}">博士</c:if>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <!-- 结束6 -->
        <h5 class="page-header alert-info" style="padding:10px; margin:0px; margin-bottom:5px;">备注信息</h5>
        <div class="row">
            <div class="col-sm-10">
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.note}</p>
                    </div>
                </div>

            </div>

        </div>
        <h5 class="page-header alert-info" style="padding:10px; margin:0px; margin-bottom:5px;">账号信息</h5>
        <div class="row">
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">账号</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.account}</p>
                    </div>
                </div>

            </div>
            <div class="col-sm-5">
                <div class="form-group">
                    <label class="col-sm-3 control-label">密码</label>
                    <div class="col-sm-9">
                        <p class="form-control-static">${employee.password}</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-5 col-sm-offset-4">
                <a href="/system/employee/toEdit?id=${employee.id}" class="btn btn-success" >修改</a>
                <input  type="reset" class="btn  btn-danger" value="删除" onClick="javascript:window.location='/system/employee/delete?id=${employee.id}'"/>
                <input  type="reset" class="btn btn-warning" value="返回上一级" onclick="javascript:history.go(-1)"/>
            </div>
        </div>
    </form>
</body>
</html>
